package SpringBoot.spring_boot_starter_data_redis.jedis;

import java.util.Set;

import com.titan.core.utils.cache.RedisUtils;
import com.titan.core.utils.io.ConsoleUtils;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class TestType {
	public static void main(String[] args) {
		try {
		    RedisUtils.init("127.0.0.1", 6001);
			run();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
		    RedisUtils.shutdown();
		}
	}

	public static void run() throws Exception {
//		RedisUtils.type(key);
	    Set<String> keysSet = RedisUtils.keys("*");
	    for (String key : keysSet) {
	        ConsoleUtils.log("type", "key", key, "type", RedisUtils.type(key));
        }
	    
	}
	
}
